sunxi_nand_spl: Use SYS_NAND_SELF_INIT and only do nand init when necessary
authorHans de Goede <[email protected]>
Sat, 15 Aug 2015 09:55:26 +0000 (11:55 +0200)
committerHans de Goede <[email protected]>
Mon, 31 Aug 2015 06:43:41 +0000 (08:43 +0200)
commitf62bfa56daf17e3e8fac85795196c0ffad42e444
treea91ef11f810c5361252433fc588eada6087d4a3e
parent9da5fca55cbf9465052256346f6e61968acedf2f
sunxi_nand_spl: Use SYS_NAND_SELF_INIT and only do nand init when necessary

Use SYS_NAND_SELF_INIT and only setup the pinmux and clocks when we are
actually using the nand.

Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Ian Campbell <[email protected]>
board/sunxi/board.c
drivers/mtd/nand/Kconfig
drivers/mtd/nand/sunxi_nand_spl.c